function create_plot(M, Delta, theta_range, fig_number)

[w, Delta] = initialize_params(M, Delta);
y = spat_response(w,Delta,degtorad(theta_range));
figure(fig_number)
plot(theta_range, y)
title('spatial response for fixed w')
xlabel('angle [deg]')
legend(['M = ' int2str(M) ' Delta = ' int2str(Delta)])

end